﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Pulse
{
    public class RenderManager : BaseManager
    {
        private BasicEffect effect;
        private SpriteBatch spriteBatch;

        public GraphicsDevice GraphicsDevice
        {
            get { return this.Game.GraphicsDevice; }
        }

        public GraphicsDeviceManager Graphics
        {
            get { return this.Game.Graphics; }
            set { this.Game.Graphics = value; }
        }

        protected override String getName()
        {
            return "Render";
        }

        public RenderManager(Game game)
            : base(game)
        {
            Initialize();
        }

        protected override void Initialize()
        {
            base.Initialize();
        }

        private void LoadBasicEffect()
        {
            effect = new BasicEffect(this.GraphicsDevice);
            effect.EnableDefaultLighting();
        }

        public override void LoadContent()
        {
            LoadBasicEffect();
            spriteBatch = new SpriteBatch(this.GraphicsDevice);
        }

        public override void Draw(GameTime gameTime)
        {
            throw new NotImplementedException();
        }
    }
}
